Changeset 8554263 in network-game for common/Common.cpp


Ignore:
Timestamp:
Dec 24, 2013, 8:06:30 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
9c18cb7
Parents:
68d94de
Message:

Restructuring and code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Common.cpp

    r68d94de r8554263  
    1313#include <cmath>
    1414#include <ctime>
     15#include <cstdlib>
     16#include <cstdio>
    1517
    1618using namespace std;
     
    3032
    3133   return position;
     34}
     35
     36// This might not be cross-platform. Verify that this works correctly or fix it.
     37void error(const char *msg)
     38{
     39    perror(msg);
     40    exit(0);
    3241}
    3342
Note: See TracChangeset for help on using the changeset viewer.