Don't use bool in the generated files for C compatability
This commit is contained in:
parent
98023054c6
commit
ed81f8ac73
1 changed files with 3 additions and 3 deletions
|
|
@ -839,16 +839,16 @@ public:
|
|||
"{\n",
|
||||
" /* Find the function in the modified method table */\n",
|
||||
" size_t offset = 0;\n",
|
||||
" bool found = false;\n",
|
||||
" int found = 0;\n",
|
||||
" while (SwigMethods_proxydocs[offset].ml_meth != NULL) {\n",
|
||||
" if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {\n",
|
||||
" found = true;\n",
|
||||
" found = 1;\n",
|
||||
" break;\n",
|
||||
" }\n",
|
||||
" offset++;\n",
|
||||
" }\n",
|
||||
" /* Use the copy with the modified docstring if available */\n",
|
||||
" if (found) {\n",
|
||||
" if (found == 1) {\n",
|
||||
" return &SwigMethods_proxydocs[offset];\n",
|
||||
" } else {\n",
|
||||
" return NULL;\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue