[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

fix: circlular constructor dependencies #240

Merged
merged 16 commits into from
Feb 26, 2023
Merged

Conversation

Maddiaa0
Copy link
Member
@Maddiaa0 Maddiaa0 commented Jan 22, 2023

Overview

fixes #238

The issue:

When codesize is called from within the macro it is getting the codesize of, it does not currently take into account the codesize operation itself. This is a circular dependency.

This PR introduces a way to tackle these circular dependencies by leaving a placeholder and completing the calculation as the last step in codegen.

@Maddiaa0 Maddiaa0 marked this pull request as draft January 22, 2023 23:06
@Maddiaa0 Maddiaa0 linked an issue Jan 22, 2023 that may be closed by this pull request
@Maddiaa0 Maddiaa0 added the codegen Code Generation Related. label Jan 25, 2023
@Maddiaa0 Maddiaa0 changed the title fix: circlular constructor dependencies (wip) fix: circlular constructor dependencies Jan 28, 2023
@Maddiaa0 Maddiaa0 requested a review from clabby January 28, 2023 00:15
@Maddiaa0 Maddiaa0 marked this pull request as ready for review January 28, 2023 00:15
Copy link
Collaborator
@refcell refcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@refcell refcell merged commit 4f5e921 into stage Feb 26, 2023
@Maddiaa0 Maddiaa0 deleted the sc/fix_circlular_constructor branch February 26, 2023 18:20
This was referenced Feb 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
codegen Code Generation Related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants