fix possible nested comment
This commit is contained in:
parent
acab4e3b26
commit
3982a8b31c
|
@ -66,6 +66,9 @@ decl_export() {
|
|||
uncomment $1 | onelineize | export_sym
|
||||
}
|
||||
|
||||
print_self() {
|
||||
cat "$0" | sed -e 's#^#// #'
|
||||
}
|
||||
|
||||
generate_header() {
|
||||
local LUA_PATH="$1"
|
||||
|
@ -83,10 +86,10 @@ generate_header() {
|
|||
echo "In linux, to compile this file, you'd do: 'gcc -o xxxxx.so -shared xxxxx.c'. Simple!"
|
||||
echo "Due to the way the API is structured, you *should not* link or include lua libraries."
|
||||
echo "This file was automatically generated by the below code. DO NOT MODIFY DIRECTLY."
|
||||
echo
|
||||
echo
|
||||
cat "$0"
|
||||
echo "**/"
|
||||
echo
|
||||
print_self
|
||||
echo
|
||||
echo "#include <stddef.h>"
|
||||
|
||||
decl "$LUA_PATH/lua.h"
|
||||
|
@ -112,7 +115,10 @@ generate_api_require() {
|
|||
echo "returns a function pointer with it's corresponding name."
|
||||
echo
|
||||
echo "This file is automatically generated. DO NOT MODIFY."
|
||||
echo "*/"
|
||||
echo "**/"
|
||||
echo
|
||||
print_self
|
||||
echo
|
||||
echo "#include <string.h>"
|
||||
echo "#include <stddef.h>"
|
||||
echo '#include "lua.h"'
|
||||
|
|
Loading…
Reference in New Issue