Skip to content

Commit 6058511

Browse files
committed
Adding a known arx macro.
1 parent 05f41bf commit 6058511

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

cppparser.cpp

+10-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ std::set<std::string> gMacroNames = {"DECLARE_MESSAGE_MAP",
3737
"DBSYMUTL_MAKE_HASSYMBOLID_FUNCTION",
3838
"DBSYMUTL_MAKE_HASSYMBOLNAME_FUNCTION"};
3939

40-
std::set<std::string> gKnownApiDecorNames = {"ODRX_ABSTRACT", "FIRSTDLL_EXPORT", "GE_DLLEXPIMPORT", "ADESK_NO_VTABLE"};
40+
std::set<std::string> gKnownApiDecorNames = {"ODRX_ABSTRACT",
41+
"FIRSTDLL_EXPORT",
42+
"GE_DLLEXPIMPORT",
43+
"ADESK_NO_VTABLE",
44+
"ACDBCORE2D_PORT",
45+
"ACBASE_PORT"};
4146

4247
extern CppCompound* parseStream(char* stm, size_t stmSize);
4348
CppObjFactory* gObjFactory = nullptr;
@@ -146,10 +151,10 @@ CppParser::ByteArray CppParser::readFile(const char* filename)
146151
in.close();
147152
auto len = stripChar(contents.data(), size, '\r');
148153
assert(len <= size);
149-
contents.resize(len+3);
150-
contents[len] = '\n';
151-
contents[len+1] = '\0';
152-
contents[len+2] = '\0';
154+
contents.resize(len + 3);
155+
contents[len] = '\n';
156+
contents[len + 1] = '\0';
157+
contents[len + 2] = '\0';
153158
}
154159
return (contents);
155160
}

0 commit comments

Comments
 (0)