Commit fb649f72 by Philipp Adolf

Add #pragma once to headers

This allows compilers to optimize inclusion of header files by only running the preprocessor once per header. This is supported by GCC and Visual Studio (as well as other compilers) and unsupported compilers simply ignore it. However, GCC can detect the include guards so adding the pragma will likely have no effect.
parent 277bebb3
#pragma once
#ifndef CAMERA_H
#define CAMERA_H
......
#pragma once
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
......
#pragma once
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
......
#pragma once
#ifndef MESH_H
#define MESH_H
......
#pragma once
#ifndef SUBDIVISION_H
#define SUBDIVISION_H
......
#pragma once
#ifndef TEXTURE_H
#define TEXTURE_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment