test/formatc: improve standalone usage

Easier testing.
This commit is contained in:
Nicolas Hillegeer 2014-07-22 21:09:24 +02:00 committed by Thiago de Arruda
parent 10479fd233
commit ad4c1e1954

View File

@ -218,6 +218,8 @@ local function standalone(...)
require "moonscript"
Preprocess = require("preprocess")
Preprocess.add_to_include_path('./../../src')
Preprocess.add_to_include_path('./../../build/include')
Preprocess.add_to_include_path('./../../.deps/usr/include')
input = Preprocess.preprocess_stream(arg[1])
local raw = input:read('*all')