Skip to content

Commit bdf158b

Browse files
committed
luajit: add luajit.md
1 parent 715f850 commit bdf158b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

format/luajit/luajit.go

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package luajit
2222

2323
import (
2424
"bytes"
25+
"embed"
2526
"encoding/binary"
2627

2728
"github.com/wader/fq/format"
@@ -30,13 +31,17 @@ import (
3031
"github.com/wader/fq/pkg/scalar"
3132
)
3233

34+
//go:embed luajit.md
35+
var LuaJITFS embed.FS
36+
3337
func init() {
3438
interp.RegisterFormat(
3539
format.LuaJIT,
3640
&decode.Format{
3741
Description: "LuaJIT 2.0 bytecode dump",
3842
DecodeFn: LuaJITDecode,
3943
})
44+
interp.RegisterFS(LuaJITFS)
4045
}
4146

4247
// reinterpret an int as a float

format/luajit/luajit.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### Authors
2+
- [@dlatchx](https://github.com/dlatchx)
3+
4+
### References
5+
- https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/lj_bcdump.h
6+
- http://scm.zoomquiet.top/data/20131216145900/index.html

0 commit comments

Comments
 (0)