diff options
| author | jussi | 2023-04-12 00:05:57 +0300 |
|---|---|---|
| committer | jussi | 2023-04-12 00:05:57 +0300 |
| commit | 895c7f1a06de2d89347909d62da41be9d62f0d09 (patch) | |
| tree | f5e5c3a020b63719afc4d85156b7872a2e8b9ccc /doc_parser.lua | |
| parent | 3445d935d66969a7eec97e8691b68496dc51af0b (diff) | |
| download | reilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.tar.gz reilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.tar.bz2 reilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.zip | |
glBlitFramebuffer.
Diffstat (limited to 'doc_parser.lua')
| -rw-r--r-- | doc_parser.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc_parser.lua b/doc_parser.lua index cdacb2c..52e9fe7 100644 --- a/doc_parser.lua +++ b/doc_parser.lua @@ -122,6 +122,7 @@ luaApiFile:write( local srcFile = io.open( "../src/lua_core.c", "r" ) local writing = false +local globalVariableCount = 0 repeat line = srcFile:read( "*l" ) @@ -144,6 +145,7 @@ repeat local value = RL[ globalName ] globalName = "RL."..globalName + globalVariableCount = globalVariableCount + 1 if value == nil then luaApiFile:write( globalName.."=nil\n" ) @@ -259,9 +261,12 @@ local sourceFiles = { "rgui", "lights", "rlgl", + "gl", "easings", } +local functionCount = 0 + for _, src in ipairs( sourceFiles ) do srcFile = io.open( "../src/"..src..".c", "r" ) local line = "" @@ -289,6 +294,7 @@ for _, src in ipairs( sourceFiles ) do luaApiFile:write( "-- "..line:sub( 4 ).."\n" ) elseif line:sub( 1, 1 ) == ">" then funcStr = parseFunction( line ) + functionCount = functionCount + 1 elseif line:sub( 1, 1 ) ~= "" then luaApiFile:write( "---"..line.."\n" ) end @@ -310,3 +316,5 @@ end if not separate then apiFile:close() end + +print( "Parsed:\n"..globalVariableCount.." Global variables\n"..functionCount.." Functions" )
\ No newline at end of file |
