use pragma instead of headers

This commit is contained in:
Mylloon 2023-11-26 00:12:41 +01:00
parent 68b2ed4783
commit 42f287b018
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 2 additions and 12 deletions

View file

@ -20,8 +20,6 @@ Copy and paste [`c/`](./c/) directory, and you should be good to go!
- **Run `make dev` to compile the program in debug mode.**
- **Run `make clean` to clean artifacts.**
> Note that in headers, the syntax is `PROJECTNAME_FILENAME_H`
## C++
Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
@ -32,8 +30,6 @@ Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
- **Run `make dev` to compile the program in debug mode.**
- **Run `make clean` to clean artifacts.**
> Note that in headers, the syntax is `PROJECTNAME_FILENAME_HPP`
## LaTeX
### Document

View file

@ -1,8 +1,5 @@
#ifndef PROJECT_EXAMPLE_H
#define PROJECT_EXAMPLE_H 1
#pragma once
#include <stdio.h>
void example();
#endif

View file

@ -1,5 +1,4 @@
#ifndef PROJECT_EXAMPLE_HPP
#define PROJECT_EXAMPLE_HPP 1
#pragma once
#include <iostream>
@ -13,5 +12,3 @@ public:
Example(const Example &); // copy constructor
const Example &operator=(const Example &); // copy assignement
};
#endif