The HTTP client and the geo library (class GeoPoint). XCSoar), but some very basic things can be tested here, for example Most libraries are missing here (everything specific to a full output / UNIX / bin / RunLua test / lua / geo. You can experiment with XCSoar Lua scripts with the RunLua That case, the Lua script stays resident until it unregisters allĬallbacks (or until XCSoar quits or the user stops the scriptĮxplicitly). Unless the script has registered a callback (e.g. Once the Lua script finishes, the Lua interpreter is shut down – Note that the InputEvent subsystem is deprecated and will be removedĪs long as a Lua script runs, the XCSoar user interface is blocked. If no parameter is given, the user is asked to choose a file. The InputEvent RunLuaFile can be used to start additional ![]() The directory XCSoarData/lua/lib/ may contain Lua libraries to beĪfter startup, XCSoar starts the script a (if it The directory XCSoarData/lua/ may contain Lua scripts ( *.lua). ![]() i ) elseif i = 0 then print ( "zero" ) else error ( "negative" ) end a = print ( a ) function f ( a, b ) return a * b end print ( f ( 2, 3 )) Running Lua ¶ comment starts with a double hyphen -] - i = 42 if i > 1 then print ( "i=".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |