]> git.tdb.fi Git - libs/game.git/commitdiff
Undefine the API macro at the end of a setup header
authorMikko Rasa <tdb@tdb.fi>
Sat, 21 Jan 2023 18:31:25 +0000 (20:31 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 21 Jan 2023 18:31:25 +0000 (20:31 +0200)
Otherwise it may interfere with other setup headers.

tools/setupgen/setupgen.cpp

index 204045fbd364a90c5da1199cdb10176e07de633e..8448f558006f8780c47912f76b06f3e8c643c730 100644 (file)
@@ -165,6 +165,7 @@ void SetupGen::generate_header(const Module &mod, IO::Base &out) const
        if(!mod.name_space.empty())
                IO::print(out, "\n}  // namespace %s\n", mod.name_space);
 
+       IO::print(out, "\n#undef API\n");
        IO::print(out, "\n#endif\n");
 }