Branch: Tag:

2005-05-27

2005-05-27 18:33:20 by Martin Stjernholm <mast@lysator.liu.se>

Added some macros to help building constant strings with arbitrary code.

Rev: src/interpret.h:1.161
Rev: src/stralloc.h:1.93

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.h,v 1.160 2005/05/05 20:42:56 nilsson Exp $ + || $Id: interpret.h,v 1.161 2005/05/27 18:33:20 mast Exp $   */      #ifndef INTERPRET_H
355:    _sp_->type=PIKE_T_STRING; \    }while(0)    + #define push_constant_string_code(STR, CODE) do{ \ +  struct pike_string *STR; \ +  REF_MAKE_CONST_STRING_CODE (STR, CODE); \ +  push_string (STR); \ +  }while(0) +    #define push_function(OBJ, FUN) do { \    struct object *_=(OBJ); \    struct svalue *_sp_ = Pike_sp++; \