-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CfgFunctions parser fails on some macros combinations #56
Comments
Functions need to be defined in description.ext (or the definition must be included there) and the expected format is described here: there is also limited support for macros, so there's posibility your functions wont get recognized properly if the definitions rely on macros. |
Functions define in file functions.hpp, mission https://github.com/AlexTriada/A3-AntiStaki |
Similar to: #20 Description Way to reproduce:
Structure of project explained
|
Thanks for detailed info, I'll look into it when I have time |
@Wyqer: This issue with your description.ext is usage of __EVAL() |
Ok, good to know the possible cause of the issue. In any case many thanks for your support and work on sqflint, you're making our work so much easier. |
Yes, when you remove the __EVAL, it's fine. I've already wrote a fix and will publish it soon, I just want to test if it doesn't break anything else. @AlexTriada Your description.ext has multiline macros, which aren't supported yet, let me see if I can do anything about it. |
@AlexTriada sorry, but the usage of macros in your description.ext (and correlating hpp files) is way too complicated right now, maybe when I have time to completely rewrite the preprocessor :'( @Wyqer the issue with __EVAL should be fixed now (0.10.1) |
Edit, the leftover now is just what I reported in #55 |
Are the functions getting parsed in the config.cpp? class CfgFunctions {
class JRS_VehicleDeploy {
tag = "JRS";
class vehicle {
file = "\jrs_vehicle_deploy\functions\vehicle";
class deployObjects { };
class initVehicle { };
};
class utils {
file = "\jrs_vehicle_deploy\functions\utils";
class createObject { };
};
};
}; Or am I doing something wrong? |
Great module, I really like it, man, you can deal with the functions, or suggest how to prescribe them in .hpp so that they do not create notifications of type "Possibly undefined variable some_fnc_name_function" - it's very distracting
The text was updated successfully, but these errors were encountered: