mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
refactor: replace manual header guards with #pragma once
It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef NVIM_AUTOCMD_H
|
||||
#define NVIM_AUTOCMD_H
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
@@ -101,5 +100,3 @@ EXTERN pos_T last_cursormoved INIT( = { 0, 0, 0 });
|
||||
/// Iterates over all the events for auto commands
|
||||
#define FOR_ALL_AUEVENTS(event) \
|
||||
for (event_T event = (event_T)0; (int)event < (int)NUM_EVENTS; event = (event_T)((int)event + 1)) // NOLINT
|
||||
|
||||
#endif // NVIM_AUTOCMD_H
|
||||
|
Reference in New Issue
Block a user