Don't use bool in the generated files for C compatability

This commit is contained in:
Alec Woods 2019-01-26 09:06:23 -05:00
commit ed81f8ac73

View file

@ -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",