mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-03-20 19:21:03 +01:00
20 lines
421 B
C++
20 lines
421 B
C++
/* This file is part of the sirit project.
|
|
* Copyright (c) 2018 ReinUsesLisp
|
|
* This software may be used and distributed according to the terms of the GNU
|
|
* Lesser General Public License version 2.1 or any later version.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "stream.h"
|
|
#include "op.h"
|
|
|
|
namespace Sirit {
|
|
|
|
template<typename T>
|
|
inline void AddEnum(Op* op, T value) {
|
|
op->Add(static_cast<u32>(value));
|
|
}
|
|
|
|
} // namespace Sirit
|