JIC-CSB / kilombo

Kilobot simulator in C
Other
44 stars 16 forks source link

macroify callback system #21

Closed mhinsch closed 9 years ago

mhinsch commented 9 years ago

With macro concatenation all callback setters can be unified to one function. Even better - the macro can be conditionally defined so that it resolves to an empty statement when compiling for the bots (another '#ifdef' less in user code).

mhinsch commented 9 years ago

Needs userdata.h which consequently might need to be renamed.

mhinsch commented 9 years ago

Also, requires documentation.