/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code tcc_register_callback(struct tcc_module *const module, tcc_callback_t callback_func, const enum tcc_callback callback_type)
/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code tcc_register_callback(struct tcc_module *const module, tcc_callback_t callback_func, const enum tcc_callback callback_type)
{
	Assert(module);
	Assert(callback_func);
	module->callback[callback_type] = callback_func;
	module->register_callback_mask |= _tcc_intflag[callback_type];
	return STATUS_OK;
}