Skip to content

Commit 0dbbfaf

Browse files
committed
noexcept in stuff
1 parent 283bce4 commit 0dbbfaf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/common/stuff.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,30 @@
2525
#ifndef COMMON_STUFF_H
2626
#define COMMON_STUFF_H
2727

28-
inline void add_byte(UCHAR* &blr, const int byte)
28+
inline void add_byte(UCHAR* &blr, const int byte) noexcept
2929
{
3030
*blr++ = (SCHAR) (byte);
3131
}
3232

33-
inline void add_word(UCHAR* &blr, const int word)
33+
inline void add_word(UCHAR* &blr, const int word) noexcept
3434
{
3535
add_byte(blr, word);
3636
add_byte(blr, (word) >> 8);
3737
}
3838

39-
inline void add_long(UCHAR* &blr, const SLONG lg)
39+
inline void add_long(UCHAR* &blr, const SLONG lg) noexcept
4040
{
4141
add_word(blr, lg);
4242
add_word(blr, (lg) >> 16);
4343
}
4444

45-
inline void add_int64(UCHAR* &blr, const SINT64 i64)
45+
inline void add_int64(UCHAR* &blr, const SINT64 i64) noexcept
4646
{
4747
add_long(blr, i64);
4848
add_long(blr, (i64) >> 32);
4949
}
5050

51-
inline void add_string(UCHAR* &blr, const TEXT* string)
51+
inline void add_string(UCHAR* &blr, const TEXT* string) noexcept
5252
{
5353
add_byte(blr, static_cast<int>(strlen(string)));
5454
while (*string)

0 commit comments

Comments
 (0)