Disabled debug output, and fixed enum declarations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5c0220b3be
commit
3b637dedf0
1 changed files with 7 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ char cvsroot_cffi_cxx[] = "$Header$";
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#include "cparse.h"
|
#include "cparse.h"
|
||||||
|
|
||||||
#define CFFI_DEBUG
|
//#define CFFI_DEBUG
|
||||||
class CFFI : public Language {
|
class CFFI : public Language {
|
||||||
public:
|
public:
|
||||||
File *f_cl;
|
File *f_cl;
|
||||||
|
|
@ -427,7 +427,10 @@ int CFFI :: enumDeclaration(Node *n) {
|
||||||
String *slot_name = Getattr(c, "name");
|
String *slot_name = Getattr(c, "name");
|
||||||
String *value = Getattr(c, "enumvalue");
|
String *value = Getattr(c, "enumvalue");
|
||||||
|
|
||||||
Printf(f_cl,"(:%s %s)",slot_name,value);
|
if(!value)
|
||||||
|
Printf(f_cl,"\n\t:%s",slot_name,value);
|
||||||
|
else
|
||||||
|
Printf(f_cl,"\n\t(:%s %s)",slot_name,value);
|
||||||
|
|
||||||
Delete(value);
|
Delete(value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue