Beispiel #1
0
void
TJSObject::invalidate()
{
    // TJSオブジェクトを破壊して参照をクリアする
    // これにより、TJS側で回収処理が走りこのオブジェクト自体は
    // ネイティブインスタンスのクリア処理で破棄される
    if (instance.Type() == tvtObject && instance.AsObjectClosureNoAddRef().IsValid(0, NULL, NULL, NULL) == TJS_S_TRUE) {
        TVPDoTryBlock(TryInvalidate, Catch, NULL, (void *)&instance);
    }
    instance.Clear();
}
Beispiel #2
0
 SQRESULT getter() {
     TVPDoTryBlock(TryGetter, Catch, Finally, (void *)this);
     return result;
 }
Beispiel #3
0
 SQRESULT exec() {
     TVPDoTryBlock(TryExec, Catch, Finally, (void *)this);
     return result;
 }
Beispiel #4
0
 SQRESULT create(tTJSVariant &target) {
     TVPDoTryBlock(TryCreate, Catch, Finally, (void *)this);
     target = r;
     return result;
 }
Beispiel #5
0
	Local<Value> exec() {
		TVPDoTryBlock(TryGetter, Catch, Finally, (void *)this);
		return ret;
	}
Beispiel #6
0
	void exec() {
		TVPDoTryBlock(TrySetter, Catch, Finally, (void *)this);
	}
Beispiel #7
0
	Local<Value> create() {
		TVPDoTryBlock(TryCreate, Catch, Finally, (void *)this);
		return ret;
	}