-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
Description
Mauricio identified a weird limitation that can cause many troubles to developers.
pcn_log is not a function nor a macro, it is just a string that is looked and replaced in the code using a set of regular expressions (DatapathLog::parse_log)[1]. Currently, those regex are only able to replace pcn_log correctly if this is in a single line, otherwise strange compilation errors happen.
This limitation is because this is not possible to use a map inside a macro with bcc, unfortunately, I haven't been able to look a solution for it.