> home > Custom Layer Boundary API

get_global_managed_scope

January 19th 2020
Get the id of the 'global' managed scope

Signature

C++
Managed_Scope
get_global_managed_scope(Application_Links* app);

Parameters

app

the standard custom layer context pointer

Return

the id of the global managed scope

Details

The global managed scope has a lifetime tied to the instance of 4coder itself. It is unique in that it does not combine with other scopes to create unique intersection scopes. To put it another way, all scopes are automatically implicitly dependent on the global scope, so adding it to the list of scopes in a 'multiple dependencies' scope has no effect on the result.