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

Pawndoc and deprecation messages collide #705

Open
Y-Less opened this issue Mar 31, 2022 · 1 comment
Open

Pawndoc and deprecation messages collide #705

Y-Less opened this issue Mar 31, 2022 · 1 comment

Comments

@Y-Less
Copy link
Member

Y-Less commented Mar 31, 2022

#pragma option -r

/**
 * - documentation
 */
#pragma deprecated - message
Func() {}

main()
{
	Func();
}

Output:

warning 234: function is deprecated (symbol "Func") - message
#pragma option -r

main()
{
	Func();
}

/**
 * - documentation
 */
#pragma deprecated - message
Func() {}

Output:

warning 234: function is deprecated (symbol "Func") - documentation 

They both use the ->documentation field in the symbol struct, and clearly order matters.

@Y-Less
Copy link
Member Author

Y-Less commented Mar 31, 2022

Furthermore:

//#pragma option -r

main()
{
	Func();
}

/**
 * - documentation
 */
#pragma deprecated - message
Func() {}

Output:

warning 234: function is deprecated (symbol "Func") 

Disabling pawndoc means neither get used.

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

1 participant