1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-26 17:38:21 +01:00
antd-lua-plugin/lib/ann/lfann.h
2020-01-02 17:51:08 +01:00

46 lines
1.1 KiB
C

/*
This file is part of lfann.
lfann is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lfann is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with lfann. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2009 - 2013 Lucas Hermann Negri
*/
/* C */
#define luaL_reg luaL_Reg
#include <string.h>
/* FANN */
#include <doublefann.h>
#include "../lualib.h"
//#include "../../lua-api.h"
#define LIB_NAME "ann"
typedef struct
{
void* pointer;
} Object;
typedef struct
{
lua_State* L;
int function_ref;
int ud_ref;
} CallbackInfo;
struct fann_error err_handler;