more xcb implementation code
This commit is contained in:
@ -407,7 +407,7 @@ struct moo_ntime_t
|
||||
#define MOO_UCI_EOF ((moo_ooci_t)-1)
|
||||
|
||||
#define MOO_SIZEOF(x) (sizeof(x))
|
||||
#define MOO_COUNTOF(x) (sizeof(x) / sizeof(x[0]))
|
||||
#define MOO_COUNTOF(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
/**
|
||||
* The MOO_OFFSETOF() macro returns the offset of a field from the beginning
|
||||
|
@ -46,7 +46,7 @@
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
/* this is for gc debugging */
|
||||
#define MOO_DEBUG_GC
|
||||
/*#define MOO_DEBUG_GC*/
|
||||
#define MOO_DEBUG_COMPILER
|
||||
/*#define MOO_DEBUG_VM_PROCESSOR*/
|
||||
/*#define MOO_DEBUG_VM_EXEC*/
|
||||
|
@ -651,7 +651,7 @@ moo_pfbase_t* moo_querymod (moo_t* moo, const moo_ooch_t* pfid, moo_oow_t pfidle
|
||||
if ((pfbase = mdp->mod.query (moo, &mdp->mod, sep + 1, pfidlen - mod_name_len - 1)) == MOO_NULL)
|
||||
{
|
||||
/* the primitive function is not found. but keep the module open even if it's opened above */
|
||||
MOO_DEBUG2 (moo, "Cannot find a primitive function [%js] in a module [%js]\n", sep + 1, mdp->mod.name);
|
||||
MOO_DEBUG3 (moo, "Cannot find a primitive function [%.*js] in a module [%js]\n", pfidlen - mod_name_len - 1, sep + 1, mdp->mod.name);
|
||||
moo->errnum = MOO_ENOENT; /* TODO: proper error code and handling */
|
||||
return MOO_NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user