Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fix for non-standard macro usage and for a warning. #143

Merged
merged 3 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct TestMessage : public Message
return true;
}

YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS();
YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS()
};

struct TestBlockMessage : public BlockMessage
Expand All @@ -90,7 +90,7 @@ struct TestBlockMessage : public BlockMessage
return true;
}

YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS();
YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS()
};

struct TestSerializeFailOnReadMessage : public Message
Expand All @@ -100,7 +100,7 @@ struct TestSerializeFailOnReadMessage : public Message
return !Stream::IsReading;
}

YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS();
YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS()
};

struct TestExhaustStreamAllocatorOnReadMessage : public Message
Expand Down Expand Up @@ -129,7 +129,7 @@ struct TestExhaustStreamAllocatorOnReadMessage : public Message
return true;
}

YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS();
YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS()
};

enum TestMessageType
Expand Down
4 changes: 2 additions & 2 deletions yojimbo.h
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@ namespace yojimbo

template <typename Stream> bool Serialize( Stream & stream ) { (void) stream; return true; }

YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS();
YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONS()

protected:

Expand Down Expand Up @@ -4106,7 +4106,7 @@ namespace yojimbo
#define YOJIMBO_DECLARE_MESSAGE_TYPE( message_type, message_class ) \
\
case message_type: \
message = YOJIMBO_NEW( allocator, message_class ); \
message = YOJIMBO_NEW( allocator, message_class, ); \
if ( !message ) \
return NULL; \
SetMessageType( message, message_type ); \
Expand Down
Loading