1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifdef __cplusplus extern "C" { #endif /*! calculate add(a, b) * * @param a the first argument * @param b the second argument * * @return the result */ __attribute__((visibility("default"))) int add(int a, int b); #ifdef __cplusplus } #endif