Changeset 252


Ignore:
Timestamp:
Mar 11, 2007, 11:31:12 PM (18 years ago)
Author:
cinc
Message:

First attempt on automatic parameter check for methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/idl/nombase.idl

    r242 r252  
    1616* The Initial Developer of the Original Code is
    1717* netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>.
    18 * Portions created by the Initial Developer are Copyright (C) 2005-2006
     18* Portions created by the Initial Developer are Copyright (C) 2005-2007
    1919* the Initial Developer. All Rights Reserved.
    2020*
     
    5555
    5656//#define NOMMETACLASS( a ) const string METACLASS_TO_USE = (a)
    57 #define NOMMETACLASS( a ) const string _conc(_conc(METACLASS_TO_USE_,__LINE__), a) = (#a)
     57#define NOMMETACLASS( a ) const string _conc(_conc(METACLASS_TO_USE_,_conc(__LINE__, __INCLUDE_LEVEL__)), a) = #a
    5858
    5959/* Define a pointer on a class for IDL using the classname. This is only one half of the work.
     
    6262#define NOMCLASSNAME( a ) native P ## a
    6363
    64 /* #warning !!!!! NOMCLASSNAME macro is missing !!!!! */
     64/* For doing parameter checks */
     65#define NOMPARMCHECK(a ,...)   const string _conc(a, _conc(__PARMCHECK__, _conc(__LINE__,__INCLUDE_LEVEL__))) = #__VA_ARGS__
     66
    6567
    6668/* Native types we want to use in the IDL */
Note: See TracChangeset for help on using the changeset viewer.