diff options
| author | ruki <[email protected]> | 2019-11-17 23:38:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-11-17 23:38:54 +0800 |
| commit | cf984b4a0e9e4ea733f2c35deca3b714baa2a227 (patch) | |
| tree | a543106b0ceca6f81d7528749bc3812adbeefdc1 /xmake/core/_xmake_main.lua | |
| parent | f5258628ba215481571ce1e957737b2ed97c45ab (diff) | |
add .xmakerc.lua
Diffstat (limited to 'xmake/core/_xmake_main.lua')
| -rw-r--r-- | xmake/core/_xmake_main.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua index 9e80593fe..93f225c56 100644 --- a/xmake/core/_xmake_main.lua +++ b/xmake/core/_xmake_main.lua @@ -66,6 +66,11 @@ function _loadfile_impl(filepath, mode, opt) end io.file_close(file) + -- do on_load() + if opt.on_load then + data = opt.on_load(data) or data + end + -- load script from string return load(data, "@" .. displaypath, mode) end |
