fixing the gc issues in go wrapper code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-30 23:47:56 +09:00
parent 35a9adea7e
commit 2bebf11d41
8 changed files with 261 additions and 138 deletions

View File

@ -843,24 +843,24 @@ public:
///
/// The following will end up in a segmentation fault or the like.
/// HAWK::HawkStd hawk;
/// hawk.open();
/// HAWK::HawkStd::SourceString in("BEGIN{}");
/// hawk.parse(in, HAWK::Hawk::Source::NONE);
/// hawk.open();
/// HAWK::HawkStd::SourceString in("BEGIN{}");
/// hawk.parse(in, HAWK::Hawk::Source::NONE);
/// HAWK::Hawk::Value v(rtx);
/// v.setMbs("hello", 5);
/// hawk.close();
/// v.setMbs("hello", 5);
/// hawk.close();
///
/// You don't call hawk.close() and rely on the destructor or
/// enclose 'v' in another nested scope.
/// HAWK::HawkStd hawk;
/// hawk.open();
/// HAWK::HawkStd::SourceString in("BEGIN{}");
/// hawk.parse(in, HAWK::Hawk::Source::NONE);
/// hawk.open();
/// HAWK::HawkStd::SourceString in("BEGIN{}");
/// hawk.parse(in, HAWK::Hawk::Source::NONE);
/// {
/// HAWK::Hawk::Value v(rtx);
/// v.setMbs("hello", 5);
/// v.setMbs("hello", 5);
/// }
/// hawk.close();
/// hawk.close();
///
class HAWK_EXPORT Value
{