News for hackers. Stuff that matters.
Re:Main is usually a function, so when is it not? (2015) by user5994461 on Sunday September 10, 2017 @10:42AM (#15212395)

    int main(void)
    {
        __asm {
          mov eax, 123
        }
    }

    // visual studio command line
    // cl testc.c
    // cl testcpp.cpp
    // testc.exe
    // echo C %errorlevel%
    // testcpp.exe
    // echo CPP %errorlevel%
Indeed. It's a C99 thing.

For those not familiar with MSVC. The C compiler is not C99 compliant and the C++ compiler is.

There are no comments on this comment yet.