Code Monkey home page Code Monkey logo

Comments (7)

Y-Less avatar Y-Less commented on August 29, 2024

I played with a few methods, it is the "\10;" that causes it, somehow... I actually saw the same bug years ago in fixes.inc, but didn't put the two together:

https://github.com/Y-Less/sa-mp-fixes/blob/90f0e9ba42f8afc7f41241bb1521058bbcf6d9b4/fixes.inc#L8128-L8140

from compiler.

Y-Less avatar Y-Less commented on August 29, 2024

Also possibly related:

#define stock%0\n;%9 stock%0 __stock$
#define iterfunc%0(%1) %0(%1) TYPES:
#define TYPES:%0$ TYPES:

stock iterfunc A(b)
{
}

That hangs the compiler, I don't think it should. My expected output is:

Match stock:

stock iterfunc A(b) __stock${
}

Match iterfunc:

stock A(b) TYPES: __stock${
}

Match TYPES:

stock A(b) TYPES:{
}

No matches left. But it just hangs.

from compiler.

oscar-broman avatar oscar-broman commented on August 29, 2024

Not sure if it helps, but this is what my macro debugger spits out:

SUBST(test.pwn): 5.0-20 = (28) stock iterfunc A(b) __stock$
SUBST(test.pwn): 5.6-19 = (12)  A(b) TYPES:
SUBST(test.pwn): 5.12-27 = (6) TYPES:
SUBST(test.pwn): 5.12-18 = (6) TYPES:
SUBST(test.pwn): 5.12-18 = (6) TYPES:
SUBST(test.pwn): 5.12-18 = (6) TYPES:
SUBST(test.pwn): 5.12-18 = (6) TYPES:
etc..

BTW, maybe a feature could be added to check if a macro replaces into the same thing then throw an error.

from compiler.

Y-Less avatar Y-Less commented on August 29, 2024

I really wanted your stepper, but it wasm't online. Thanks - that is clearly wrong.

from compiler.

oscar-broman avatar oscar-broman commented on August 29, 2024

Yeah sorry about that. I've been meaning to improve this and create a pull request here.

from compiler.

Y-Less avatar Y-Less commented on August 29, 2024

OK, I would love to see how much junk gets spit out using that on the YSI test script!

from compiler.

Southclaws avatar Southclaws commented on August 29, 2024

When compiled with "-l" produces "C"

Could this be related to the how -l produces inaccurate results? I remember you brought it up recently.

Gonna close this with "stale" for now as it's either fixed or not a huge problem.

from compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.