Closed dpino closed 9 years ago
Humm, I don't know! Perhaps we could simply define a "standard prologue" ?
wdyt?
Andy Wingo wrote:
Perhaps we could simply define a "standard prologue" ? ... Plausible, and it'd increase consistency over the rest of our code, and get rid of other places where that's been an annoyance.
Does #134 sufficiently address this - can it be closed now?
I noticed that when passing { source = true } to compile_pflua doesn't print out the source code of the required libraries (the ones that are passed in env).
For instance, if I print out a function with pflua-compile:
And later try to use that function in pflua-match:
I will get an error because function
cast
(all the functions that are passed in the environment) doesn't exist.Is this the intended behaviour? Should we let the user to append manually the functions used? In case of fixing it, it'd be necessary to include the definition of functions
runtime_u32
,runtime_add
, etc for the bpf pipeline.