1 /***************************************************************************** 2 Freeciv - Copyright (C) 2005 - The Freeciv Project 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 2, or (at your option) 6 any later version. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 *****************************************************************************/ 13 14 #ifdef HAVE_CONFIG_H 15 #include <fc_config.h> 16 #endif 17 18 /* common/scriptcore */ 19 #include "luascript.h" 20 21 /* server/scripting */ 22 #include "script_fcdb.h" 23 24 #include "api_fcdb_base.h" 25 26 /***************************************************************************** 27 Return the value for the fcdb setting 'type'. 28 *****************************************************************************/ api_fcdb_option(lua_State * L,const char * type)29const char *api_fcdb_option(lua_State *L, const char *type) 30 { 31 LUASCRIPT_CHECK_STATE(L, NULL); 32 LUASCRIPT_CHECK_ARG_NIL(L, type, 2, string, NULL); 33 34 return fcdb_option_get(type); 35 } 36