User Tools

Site Tools


glossary:glossary_i

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
glossary:glossary_i [2021/08/11 09:24] – [ICSP] WortingUKglossary:glossary_i [2022/01/26 09:25] – [Include Guard] WortingUK
Line 27: Line 27:
  
  \\ [[http://www.kpsec.freeuk.com/components/lamp.htm|http://www.kpsec.freeuk.com/components/lamp.htm]]  \\ [[http://www.kpsec.freeuk.com/components/lamp.htm|http://www.kpsec.freeuk.com/components/lamp.htm]]
 +
 +===== Include Guard =====
 +
 +A method of preventing a C or C++ header file, from being included more than once by the main file.
 +
 +''#ifndef _FILENAME_H
 +
 +#define _FILENAME_H
 +
 +// .... contents of the header file
 +
 +#endif /* _FILENAME_H */''
 +
 +If the compiler supports it then ''pragma once'' can be used.
  
  
glossary/glossary_i.txt · Last modified: 2023/07/25 15:55 by JohnFletcher

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki