Skip to content
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

CBA PREP() macro could be useful thing to have documented #1021

Closed
Bummeri opened this issue Nov 4, 2018 · 1 comment · Fixed by #1022
Closed

CBA PREP() macro could be useful thing to have documented #1021

Bummeri opened this issue Nov 4, 2018 · 1 comment · Fixed by #1022
Milestone

Comments

@Bummeri
Copy link

Bummeri commented Nov 4, 2018

CBA Version: stable

Description:
For example ACE mentions this about the PREP macro:

Functions shall be created in the functions\ subdirectory, named fnc_functionName.sqf They shall then be indexed via the PREP(functionName) macro in the XEH_preInit.sqf file.

The PREP macro allows for CBA function caching, which drastically speeds up load times. Beware though that function caching is enabled by default and as such to disable it you need to #define DISABLE_COMPILE_CACHE above your #include "script_components.hpp" include!

As it is useful outside CBA, maybe it should be documented also on the wiki and or here:
http://cbateam.github.io/CBA_A3/docs/files/main/script_macros_common-hpp.html

@commy2
Copy link
Contributor

commy2 commented Nov 4, 2018

https://github.com/CBATeam/CBA_A3/blob/master/addons/main/script_macros_common.hpp#L896

PREP has no doc, because it lacks a "header" like i.e. PATHTO_FNC a few lines below.

@commy2 commy2 added this to the 3.9.1 milestone Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants