Exemple #1
0
    private static int GetAppVersionCode(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            PlatformUtil platformUtil   = (PlatformUtil)ToLua.CheckObject(L, 1, typeof(PlatformUtil));
            int          appVersionCode = platformUtil.GetAppVersionCode();
            LuaDLL.lua_pushinteger(L, appVersionCode);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }