pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:4442:   }      /* Always do the lookup in the Val module dynamically to allow the    * values to be replaced. */   #define GET_VAL(NAME) \    PMOD_EXPORT struct object *PIKE_CONCAT (get_val_, NAME) (void) \    { \    struct svalue index, res; \    if (!val_module) get_val_module(); \    index.type = T_STRING; \ +  index.subtype = 0; \    MAKE_CONST_STRING (index.u.string, TOSTR (NAME)); \    object_index_no_free (&res, val_module, 0, &index); \    if (res.type != T_OBJECT) \    Pike_error ("\"Val." TOSTR (NAME) "\" didn't resolve to an object.\n"); \    return res.u.object; \    }      GET_VAL (true)   GET_VAL (false)   GET_VAL (null)