Go to the documentation of this file. 1 #ifndef __BITTYBUZZUSERFUNCTIONS_H_
2 #define __BITTYBUZZUSERFUNCTIONS_H_
220 #endif // __BITTYBUZZUSERFUNCTIONS_H_
void registerClosure()
register a new function, exposing it to the remote composant of the swarm Signature register_closure(...
Definition: BittyBuzzUserFunctions.cpp:90
void isClosure()
Checks if a variable is a function closure Signature isclosure(arg1)
Definition: BittyBuzzUserFunctions.cpp:281
int16_t g_vmStepDelayMs
The delay between each call of the step function in buzz.
Definition: BittyBuzzUserFunctions.cpp:8
void callHostFunction()
calls a function to a host Signature call_host_function(agent_id, fname, params)
Definition: BittyBuzzUserFunctions.cpp:180
void log()
Logs to the default output Signature log(args...)
Definition: BittyBuzzUserFunctions.cpp:67
void isLambdaClosure()
Checks if a variable is a lambda, unamed closure Signature islambda_closure(arg1)
Definition: BittyBuzzUserFunctions.cpp:290
void delay()
wait for a certain delay Signature delay(arg1) Warning this function make the whole VM sleep which ca...
Definition: BittyBuzzUserFunctions.cpp:327
void isString()
Checks if a variable is a float Signature istable(arg1)
Definition: BittyBuzzUserFunctions.cpp:263
void toInt()
Casts a type to int Signature int(arg1)
Definition: BittyBuzzUserFunctions.cpp:299
void callBuzzFunction()
calls a function to a buzz Signature call_buzz_function(agent_id, fname, params)
Definition: BittyBuzzUserFunctions.cpp:208
void isInt()
Checks if a variable is an int Signature isint(arg1)
Definition: BittyBuzzUserFunctions.cpp:245
void isTable()
Checks if a variable is a table Signature istable(arg1)
Definition: BittyBuzzUserFunctions.cpp:272
Namespace to regroup the user functions, ie: custom functions that will be available in the buzz scri...
Definition: BittyBuzzUserFunctions.h:10
void toFloat()
Casts a type to float Signature float(arg1)
Definition: BittyBuzzUserFunctions.cpp:313
void isNil()
Checks if a variable is nil Signature isnil(arg1)
Definition: BittyBuzzUserFunctions.cpp:236
void isFloat()
Checks if a variable is a float.
Definition: BittyBuzzUserFunctions.cpp:254