Skip to content

Provide ArrayStack.Clone method#1304

Merged
KyleSanderson merged 2 commits intoalliedmodders:masterfrom
TheByKotik:stack-clone
Jul 9, 2020
Merged

Provide ArrayStack.Clone method#1304
KyleSanderson merged 2 commits intoalliedmodders:masterfrom
TheByKotik:stack-clone

Conversation

@TheByKotik
Copy link
Contributor

Provide ArrayStack.Clone method.

Tested with this script.

* @return New handle to the cloned stack object
* @error Invalid Handle
*/
native ArrayStack CloneStack(Handle stack);
Copy link
Member

Choose a reason for hiding this comment

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

No reason to provide old-style natives anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then i remove it?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, indeed. This encourages using the newer APIs.

@KyleSanderson KyleSanderson merged commit 611bad4 into alliedmodders:master Jul 9, 2020
@KyleSanderson
Copy link
Member

thanks for the contribution @TheByKotik

REGISTER_NATIVES(cellStackNatives)
{
{"CreateStack", CreateStack},
{"CloneStack", CloneStack},
Copy link
Contributor

@rumblefrog rumblefrog Jul 9, 2020

Choose a reason for hiding this comment

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

Would this need cleanup as well? Or are just ridding the definition.

Copy link
Member

Choose a reason for hiding this comment

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

eh, it's an internal thing. We're all adults, if someone really wants to get at this they can.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe then create RP with total old-style cleanup?
Or it's excess?

@peace-maker
Copy link
Member

This is a duplicate of #852

@TheByKotik TheByKotik deleted the stack-clone branch July 12, 2020 06:13
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

Successfully merging this pull request may close these issues.

5 participants