Skip to main content Link Menu Expand (external link) Document Search Copy Copied

BosFn(void (*fn)(bool))

A constructor for a function that is not popped off the BrainOS function list.

Parameters

  • fn - The function to be called

Explanation

See the explanation for the BosFn(bool (*fn)(bool)) constructor.

Example

void myBosFn(bool remake){
    //drawing code here
}
int main(){
    BosFn::addNewFn(BosFn(myBosFn));
}