summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/scripts/doxygen.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/scripts/doxygen.lua')
-rw-r--r--3rdparty/bgfx/scripts/doxygen.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/3rdparty/bgfx/scripts/doxygen.lua b/3rdparty/bgfx/scripts/doxygen.lua
new file mode 100644
index 00000000000..531210e7b42
--- /dev/null
+++ b/3rdparty/bgfx/scripts/doxygen.lua
@@ -0,0 +1,19 @@
+local doxygen = {}
+
+function doxygen.load(filename)
+ local lines = {}
+ for line in io.lines(filename) do
+ local code, comment = line:match "(.-)%-%-%-[ \t](.*)"
+ if code then
+ if code == "" then
+ line = string.format("comment [[%s]]", comment)
+ else
+ line = string.format("%s [[%s]]", code, comment)
+ end
+ end
+ lines[#lines+1] = line
+ end
+ return table.concat(lines, "\n")
+end
+
+return doxygen