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

ChuGin object->create() API does not call preconstructors for DLL-defined types #370

Open
AndrewAday opened this issue Sep 25, 2023 · 1 comment
Assignees

Comments

@AndrewAday
Copy link
Contributor

	Chuck_DL_Api::Type type = API->object->get_type(API, SHRED, "CglUpdate");
	Chuck_DL_Api::Object obj = API->object->create(API, SHRED, type);
	RETURN->v_object = (Chuck_Object *)obj;

CglUpdate CK_DLL_CTOR is not called.
See

inline void call_pre_constructor( Chuck_VM * vm, Chuck_VM_Shred * shred,

call_pre_constructor needs to be called, as well as pre-constructors up the inheritance hierarchy.

Encountered working on CGL.nextFrame(), but we have a workaround for now

@nshaheed
Copy link
Contributor

duplicate of #350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants