From b64f46b17299067c4a366d1f1f816cd7d72847c5 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:31:39 +0200 Subject: [PATCH] make sure address docs dont accidentally consume description docs --- codegen/src/BindingGen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codegen/src/BindingGen.cpp b/codegen/src/BindingGen.cpp index 3210bec2..c87fb974 100644 --- a/codegen/src/BindingGen.cpp +++ b/codegen/src/BindingGen.cpp @@ -42,7 +42,7 @@ public: char const* function_definition = R"GEN( /** -{docs_addresses}{docs} */ +{docs}{docs_addresses} */ {static}{virtual}{return_type} {function_name}({parameters}){const}; )GEN"; @@ -51,7 +51,7 @@ public: [[deprecated("Function is not implemented - will throw at runtime!!!")]] #endif /** -{docs_addresses}{docs} */ +{docs}{docs_addresses} */ {static}{return_type} {function_name}({parameters}){const}{{ throw std::runtime_error("Use of undefined function " + GEODE_PRETTY_FUNCTION); }} @@ -62,7 +62,7 @@ public: [[deprecated("Use of undefined virtual function - will crash at runtime!!!")]] #endif /** -{docs_addresses}{docs} */ +{docs}{docs_addresses} */ {virtual}{return_type} {function_name}({parameters}){const}{{ #ifdef GEODE_NO_UNDEFINED_VIRTUALS static_assert(false, "Undefined virtual function - implement in GeometryDash.bro"); @@ -79,7 +79,7 @@ public: char const* structor_definition = R"GEN( /** -{docs_addresses}{docs} */ +{docs}{docs_addresses} */ {function_name}({parameters}); )GEN";