本文整理汇总了C++中NativeMethodEnvironment::check_tracked_handle方法的典型用法代码示例。如果您正苦于以下问题:C++ NativeMethodEnvironment::check_tracked_handle方法的具体用法?C++ NativeMethodEnvironment::check_tracked_handle怎么用?C++ NativeMethodEnvironment::check_tracked_handle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NativeMethodEnvironment
的用法示例。
在下文中一共展示了NativeMethodEnvironment::check_tracked_handle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: capi_rarray_struct
struct RArray* capi_rarray_struct(VALUE val) {
NativeMethodEnvironment* env = NativeMethodEnvironment::get();
Handle* h = Handle::from(val);
env->check_tracked_handle(h);
return h->as_rarray(env);
}
示例2: capi_rtypeddata_struct
struct RTypedData* capi_rtypeddata_struct(VALUE data_handle) {
NativeMethodEnvironment* env = NativeMethodEnvironment::get();
Handle* handle = Handle::from(data_handle);
env->check_tracked_handle(handle, false);
return handle->as_rtypeddata(env);
}
示例3: capi_rfloat_struct
struct RFloat* capi_rfloat_struct(VALUE flt) {
NativeMethodEnvironment* env = NativeMethodEnvironment::get();
Handle* handle = Handle::from(flt);
env->check_tracked_handle(handle);
return handle->as_rfloat(env);
}
示例4: capi_rstring_struct
struct RString* capi_rstring_struct(VALUE str_handle) {
NativeMethodEnvironment* env = NativeMethodEnvironment::get();
Handle* handle = Handle::from(str_handle);
env->check_tracked_handle(handle);
RString* rstring = handle->as_rstring(env);
return rstring;
}