コード例 #1
0
 internal static HandleRef getCPtr(CustomDataTypeClass obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #2
0
ファイル: C4dApi.cs プロジェクト: KilledChicken/Fusee
 public static bool RegisterCustomDataTypePlugin(string /* constString&_cstype */ str, int info, CustomDataTypeClass dat, int disclevel) {
   bool ret = C4dApiPINVOKE.RegisterCustomDataTypePlugin(str, info, CustomDataTypeClass.getCPtr(dat), disclevel);
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }