mb_get_inputer |
![]() ![]() |
void* mb_get_inputer( mb_interpreter_t* s, bool_t* pbEx )
Returns the current input handler that is used by INPUT. If the pbEx parameter is supplied, then it will be set if the returned handler is the extended version.
The input handlers are defined as
typedef int (*mb_input_func_t)( char*, int, const char* pVarName );
Extended Version
typedef int (*mb_input_func2_t)( struct mb_interpreter_t*, char*, int, const char* pVarName );
Example
bool_t bExt = FALSE; void* pHandler; char line[256];
pHandler = mb_get_inputer( bas, &bExt );
if ( bExt ) { ((mb_input_func2_t)pHandler( bas, line, sizeof( line ), NULL ); } else { ((mb_input_func_t)pHandler( line, sizeof( line ), NULL ); } |