Jump to content

  •  

Photo

question about __64BPRTSIZE


  • Please log in to reply
No replies to this topic

#1 newbieppl

newbieppl

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 18 July 2015 - 05:47 AM

Hello guys,

I am trying to merge the "getunitdata" and "setunitdata" script commands to Hercules

 

I am pretty new, so encountered a lot of questions.

One of the most urgent is 

There is a pointer "__64BPRTSIZE" used in the rathena code

#define getunitdata_sub(idx__,var__) setd_sub(st,sd,name,(idx__),(void *)__64BPRTSIZE((int)(var__)),script_getref(st,3))

They have it defined in the const.h

#ifdef __64BIT__	#define __64BPRTSIZE(y) (intptr)y#else	#define __64BPRTSIZE(y) y#endif

But there is no such definition in Hercules.

So I am wandering what is the replacement of this pointer?

Any suggestions will be appreciated.

 



Figured it out

it's h64BPTRSIZE instead.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 33 user(s)