Methodmap Circular Dependency
Hi guys,
I've been working on an include for some custom data structures I need that other extensions/includes don't seem to solve. However, I've hit a roadblock, as I have two methodmaps that depend on each other, and I can't seem to find a way to prototype them as I would in any other language to make it work. Here's a slimmed down example of what I'm trying to achieve: PHP Code:
PHP Code:
Code:
error 110: _Array has already been defined (previously seen as methodmap) Thanks! |
Re: Methodmap Circular Dependency
https://github.com/alliedmodders/sourcepawn/pull/65
It's in the works but no there haven't been any updates for a long time. |
Re: Methodmap Circular Dependency
Thanks for that, I ended up merging them into one methodmap with a boolean to denote which it should represent.
|
Re: Methodmap Circular Dependency
You can "forward-declare" the tag using
Code:
enum _Object {}; |
Re: Methodmap Circular Dependency
Using Dynamic, the best I can achieve is declaring the circular reference members as Dynamic and using view_as<>().
http://console.aus-tg.com/index.php?...tedynamicclass |
Re: Methodmap Circular Dependency
Quote:
For example: PHP Code:
Thanks again. |
Re: Methodmap Circular Dependency
If it's a tag mismatch it would still compile and work as expected wouldnt it?
|
Re: Methodmap Circular Dependency
Quote:
|
All times are GMT -4. The time now is 00:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.