2018-08-26 07:49:16 +00:00
|
|
|
/* 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
|
2018-08-27 02:28:39 +00:00
|
|
|
* Lesser General Public License version 2.1 or any later version.
|
2018-08-26 07:49:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "op.h"
|
2018-10-03 03:32:45 +00:00
|
|
|
#include "stream.h"
|
2018-08-26 07:49:16 +00:00
|
|
|
|
|
|
|
namespace Sirit {
|
|
|
|
|
2018-10-03 03:32:45 +00:00
|
|
|
template <typename T> inline void AddEnum(Op* op, T value) {
|
2018-08-28 07:41:42 +00:00
|
|
|
op->Add(static_cast<u32>(value));
|
|
|
|
}
|
|
|
|
|
2018-08-26 07:49:16 +00:00
|
|
|
} // namespace Sirit
|