Branch: Tag:

2018-04-04

2018-04-04 16:04:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cpp: Added pointer to containing object to macro program.

This is in preparation for moving apply_define() to a
member function of the macro (aka define) program.

350:    CVAR short flags; /* CPP_MACRO_* */    CVAR short varargs;    +  CVAR struct svalue self; +     DECLARE_STORAGE;       INIT    {    struct define_struct *def = (struct define_struct *)CURRENT_STORAGE; -  +  /* NB: NO reference for def->self! */ +  SET_SVAL(def->self, T_OBJECT, +  Pike_fp->context - Pike_fp->current_program->inherits, +  object, Pike_fp->current_object);    def->args=-1;   #ifdef PIKE_NULL_IS_SPECIAL    def->magic=0;