A
adnan.yalin
Could you suggest solutions to a problem currently I have?
Problem:
Let's say I have many different commands and I call a different
function for each (void handle_command_1(*data), void
handle_command_2(*data), etc.) through my DispatchCommand(*data)
function.
For example, only implementing two of those functions is enough for an
executable, but for another executable other functions are necessary.
There can be many executables like this. The functions not implemented
would do nothing.
So basically if handle_command_1 function is implemented in the module
it will be called, but if not i should provide the function with
nothing in its body.
Thanks
Problem:
Let's say I have many different commands and I call a different
function for each (void handle_command_1(*data), void
handle_command_2(*data), etc.) through my DispatchCommand(*data)
function.
For example, only implementing two of those functions is enough for an
executable, but for another executable other functions are necessary.
There can be many executables like this. The functions not implemented
would do nothing.
So basically if handle_command_1 function is implemented in the module
it will be called, but if not i should provide the function with
nothing in its body.
Thanks