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

Syntax error when using methodmaps as macro parameters #413

Closed
Alienmario opened this issue Jul 14, 2024 · 0 comments
Closed

Syntax error when using methodmaps as macro parameters #413

Alienmario opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Alienmario
Copy link

Basic informations

  • OS: [Windows]
  • VSCode version: Latest
  • Extension version: Latest

Code to reproduce the behaviour

#define FOO(%1) %1.dostuff();

methodmap Bar {
	public void dostuff() {

	}
}

public void OnPluginStart()
{
	Bar bar;
	FOO(bar) // sourcepawn-studio(syntax-error)
}

Error messages

expected "`identifier`, `(`, `!`, `~`, `-`, `+`, `&`, `#include`, `#tryinclude`, `#define`, `#undef`, `#if`, `#elseif`, `#assert`, `preproc_else`, `preproc_endif`, `preproc_endinput`, `#pragma`, `#error`, `#warning`, `const`, `public`, `stock`, `static`, `new`, `decl`, `{`, `}`, `void`, `bool`, `int`, `float`, `char`, `_`, `Float`, `String`, `any_type`, `for`, `while`, `do`, `break`, `continue`, `if`, `else`, `switch`, `return`, `delete`, `--`, `++`, `sizeof`, `view_as`, `int_literal`, `float_literal`, `'`, `\"`, `bool_literal`, `null`, `this`, `comment`, `preproc_include`, `preproc_tryinclude`, `preproc_macro`, `preproc_define`, `preproc_undefine`, `preproc_if`, `preproc_elseif`, `preproc_assert`, `preproc_pragma`, `preproc_error`, `preproc_warning`"sourcepawn-studio(syntax-error)
@Alienmario Alienmario added the bug Something isn't working label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants