forked from Gnucash/gnucash
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc1bcc7
commit 898a9cd
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C processes macros with a program called the preprocessor that runs before the compiler and replaces macros verbatim with their definition. The definition of
DEFINE_ENUM
already has a terminating;
so another isn't needed.The reason you got the error from engine.i is that the %include directive doesn't run the preprocessor and so it thought there was a syntax error. I worked around that by replacing the DEFINE_ENUM call with its expansion:
This change adds a dependency on
gncmod-engine
to utilities.scm, soThat leaves one problem:
Because swig is converting
into
QofLogModule
is type deffed asconst gchar*
, so Swig expects to be passed a char** instead of a char*. That took a little studying to figure out, but here's the fix: