github.com/0xKiwi/rules_go@v0.24.3/tests/core/cgo/add.c (about)

     1  #include "add.h"
     2  
     3  #if !defined(RULES_GO_C) || !defined(RULES_GO_CPP) || defined(RULES_GO_CXX)
     4  #error This is a C file, only RULES_GO_C and RULES_GO_CPP should be defined.
     5  #endif
     6  
     7  int add_c(int a, int b) {
     8      return a + b;
     9  }