X-Git-Url: http://git.code-monkey.de/?p=ruby-ecore.git;a=blobdiff_plain;f=src%2Fecore_x%2Frb_ecore_x.h;h=a18a12d8128b442b947a7ea2a7a7731573aa1ed0;hp=4179c02621b03026821d990c500fec2186273483;hb=8f4a0888eab83e8924bc33193c8a0f73252e6202;hpb=0ad70bf579b712a8bf770e2775cffa4a50097557 diff --git a/src/ecore_x/rb_ecore_x.h b/src/ecore_x/rb_ecore_x.h index 4179c02..a18a12d 100644 --- a/src/ecore_x/rb_ecore_x.h +++ b/src/ecore_x/rb_ecore_x.h @@ -1,5 +1,5 @@ /* - * $Id: rb_ecore_x.h 77 2004-08-19 17:39:29Z tilman $ + * $Id: rb_ecore_x.h 98 2004-08-26 13:12:55Z tilman $ * * Copyright (C) 2004 ruby-ecore team (see AUTHORS) * @@ -21,6 +21,10 @@ #ifndef __RB_ECORE_X_H #define __RB_ECORE_X_H +#define DEF_CONST(mod, prefix, name) \ + rb_define_const ((mod), #name, \ + INT2FIX (prefix##name)); + VALUE mX; #endif