From 98208e7e95436dc6bee435d6b7e637b4aed7858a Mon Sep 17 00:00:00 2001 From: cosineblast <55855728+cosineblast@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:49:47 -0300 Subject: [PATCH] Add pragma once to the documentation --- doc/cc65.sgml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index efe48b61b..634195497 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -1681,6 +1681,16 @@ void somefunc2(int, char *); +#pragma once

+ + This pragma is used to prevent multiple inclusion of a header file. + If this pragma is preprocessed in a file, any posterior + #include which targets the current file will be ignored. + + Two files are considered to be the same by this directive if they + share the same absolute path. In the case of symbolic links, + the canonical, resolved path is considered instead. + Register variables