C Preprocessor 和 #pragma once

什么是#pragma once?

non-standard but widely supported preprocessor directive. Indicate the current source file to be included only once in a single compilation.

什么是preprocessor directive?

a preprocessor is a program that processes its input data to produce output that is used as input to another program.

Pragma 用于代替#ifndef

#pragma 代替

你可能感兴趣的:(C Preprocessor 和 #pragma once)