public long ToLongLong(string s, ref bool ok, int arg3)
{
StackItem[] stack = new StackItem[4];
#if DEBUG
stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(s);
#else
stack[1].s_class = (IntPtr) GCHandle.Alloc(s);
#endif
stack[2].s_bool = ok;
stack[3].s_int = arg3;
interceptor.Invoke("toLongLong$$$", "toLongLong(const QString&, bool*, int) const", stack);
#if DEBUG
DebugGCHandle.Free((GCHandle) stack[1].s_class);
#else
((GCHandle) stack[1].s_class).Free();
#endif
ok = stack[2].s_bool;
return stack[0].s_long;
}