[webkit-dev] Proposal: Use #pragma once instead of header guards

Anders Carlsson andersca at apple.com
Wed Mar 9 17:27:10 PST 2016

Hi floks,

Currently we use 

#ifndef Header_h
#define Header_h



I propose that we instead start using

#pragma once

which does the same thing. It can be faster on some compilers, is less error prone and is one line instead of three! All compilers we use support #pragma once.

- Anders

More information about the webkit-dev mailing list