Skip to content

Non-comment in non-string #332

Open
Open
@Y-Less

Description

@Y-Less

Is this a BUG REPORT, FEATURE REQUEST or QUESTION?:

  • Bug Report
  • Feature Request
  • Question

What happened:

don't use //this

What you expected to happen:

don't use

How to reproduce it (as minimally and precisely as possible):

#pragma deprecated don't \
				   use \
				   //this

Anything else we need to know?:

The pre-processor is interpreting ' as the start of a string, thus ignoring // as part of a string literal. I don't actually know if anything can be done about this without major renovation.

Environment:

  • Operating System
  • Compiler version
  • How are you invoking the compiler? Pawno, Sublime, vscode, sampctl or command-line?
  • If using sampctl, the version number

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions