Example #1
0
 static int GetFontName(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TextEx obj = (TextEx)ToLua.CheckObject <TextEx>(L, 1);
         string o   = obj.GetFontName();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }