#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*
 * ʾǺ궨ʱõһּ
 * 1) ĺһǸ
 * 2) ΪͨԺǿ׳Ҫ󣬲ܶԺʹ÷κμ
 */
#define PRINT_GREETINGS do { \
    printf("Hi there!\n"); \
} while (0)

int main(const int argc, const char* const* argv)
{
    // Invoke function via macro
    PRINT_GREETINGS;

    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*
 * ʾǺ궨ʱõһּ
 * 1) ĺһǸ
 * 2) ΪͨԺǿ׳Ҫ󣬲ܶԺʹ÷κμ
 */
#define PRINT_GREETINGS do { \
    printf("Hi there!\n"); \
} while (0)

int main(const int argc, const char* const* argv)
{
    // Invoke function via macro
    PRINT_GREETINGS;

    return EXIT_SUCCESS;
}

Return errorlevel with macro EXIT_SUCCESS.
Return errorlevel with macro EXIT_SUCCESS.
