bool Context::operator() (VarHdl name, ExprHdl meaning) { //prevent multiple definition if (m_defs.find(&*name) != m_defs.end()) { logger.error() << name << " is already defined" |0; return false; } _define(name,meaning); _name(name,meaning); return true; }
void muse_define_builtin_memport(muse_env *env) { /* Define the "open-file" function. This is the only file specific function needed. After this the generic port functions take over. */ _define( _csymbol(L"memport"), _mk_nativefn( fn_memport, NULL ) ); }