Show
Ignore:
Timestamp:
03/07/08 22:32:33 (10 months ago)
Author:
karpet
Message:

new config support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/bindings/perl/macros.h

    r2029 r2045  
    1414#define WORD_CLASS          "SWISH::3::Word" 
    1515#define DOC_CLASS           "SWISH::3::Doc" 
     16#define PROPERTY_CLASS      "SWISH::3::Property" 
     17#define METANAME_CLASS      "SWISH::3::MetaName" 
     18#define PROPERTY_HASH_CLASS "SWISH::3::PropertyHash" 
     19#define METANAME_HASH_CLASS "SWISH::3::MetaNameHash" 
     20#define XML2_HASH_CLASS     "SWISH::3::xml2Hash" 
    1621#define SELF_KEY            "sp_self" 
    1722#define CONFIG_KEY          "sp_config" 
     
    3136        if (items < 2) \ 
    3237            croak("usage: $object->set_xxxxxx($val)"); \ 
     38        \ 
     39        if (!SvTRUE(ST(1))) \ 
     40            croak("usage: requires true value"); \ 
    3341    } \ 
    3442    else { \