public KCoreConfigSkeleton.ItemInt AddItemInt(string name, ref int reference)
{
StackItem[] stack = new StackItem[3];
#if DEBUG
stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(name);
#else
stack[1].s_class = (IntPtr) GCHandle.Alloc(name);
#endif
stack[2].s_int = reference;
interceptor.Invoke("addItemInt$$", "addItemInt(const QString&, int&)", stack);
#if DEBUG
DebugGCHandle.Free((GCHandle) stack[1].s_class);
#else
((GCHandle) stack[1].s_class).Free();
#endif
reference = stack[2].s_int;
return (KCoreConfigSkeleton.ItemInt) Enum.ToObject(typeof(KCoreConfigSkeleton.ItemInt), stack[0].s_int);
}