ASM in C++ troubles

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 11
Reputation: Sacky is an unknown quantity at this point 
Solved Threads: 0
Sacky Sacky is offline Offline
Newbie Poster

ASM in C++ troubles

 
0
  #1
Apr 6th, 2007
Well i'm trying to implement pawn into my app (pawn the embedded scripting language) and while including the amxprocess.c i get these errors:

Error 1 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 524
Error 2 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 527
Error 3 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 530
Error 4 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 533
With this section of code:

  1. if ((ps[idx].type=='i' || ps[idx].type=='u' || ps[idx].type=='f') && ps[idx].range==1) {
  2. switch (ps[idx].size) {
  3. case 8:
  4. push((unsigned char)(ps[idx].v.val & 0xff);
  5. break;
  6. case 16:
  7. push((unsigned short)(ps[idx].v.val & 0xffff));
  8. break;
  9. default:
  10. push(ps[idx].v.val);
  11. } /* switch */
  12. } else {
  13. push(ps[idx].v.ptr);
  14. } /* if */

Could someone tell me what is wrong with this and how to fix it?
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: ASM in C++ troubles

 
0
  #2
Apr 6th, 2007
> push((unsigned char)(ps[idx].v.val & 0xff);
Well this line is missing a )
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 11
Reputation: Sacky is an unknown quantity at this point 
Solved Threads: 0
Sacky Sacky is offline Offline
Newbie Poster

Re: ASM in C++ troubles

 
0
  #3
Apr 6th, 2007
Sorry i pasted a bit of old code, however the missing ) was not my issue, it was the errors above
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC