View Single Post
Old 05-12-19, 09:03   #612
Join Date: Sep 2006
Posts: 610

That doesn't sound right, they do different things.

pragma pack sets how structs are aligned in memory and is needed to make it compatible with the other plugin sources, otherwise you'll get all kinds of weird crashes or wrong values in the game.

pragma once does the same as #include guards by including the file only once during compilation to help prevent multiple definitions.
JMN is offline   Reply With Quote