MCPcopy Create free account
hub / github.com/covscript/covscript / make_protect

Method make_protect

include/covscript/core/variable.hpp:923–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921
922 template <typename T, typename... ArgsT>
923 static any make_protect(ArgsT &&...args)
924 {
925 proxy *dat = get_allocator().alloc();
926 dat->protect_level = 1;
927 dat->data.construct_store<cs_impl::var_storage_t<T>>(std::forward<ArgsT>(args)...);
928 return any(dat);
929 }
930
931 template <typename T, typename... ArgsT>
932 static any make_constant(ArgsT &&...args)

Callers

nothing calls this directly

Calls 2

allocMethod · 0.80
anyClass · 0.70

Tested by

no test coverage detected