Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

c++ function exists

void func(int argc, char *argv[]) __attribute__((weak)); // weak declaration must always be present

// optional definition:
/*void func(int argc, char *argv[]) { 
    printf("ENCONTRE LA FUNC
");
    for(int aa = 0; aa < argc; aa++){
        printf("arg %d = %s 
", aa, argv[aa]);
    }
}*/

int main(int argc, char *argv[]) {
    if (func){ 
        func(argc, argv); 
    } else {
        printf("no encontre la func
");
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #exists
ADD COMMENT
Topic
Name
1+1 =