Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8698255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:41:28+00:00 2026-06-13T01:41:28+00:00

my code didn’t build successfully with this error message: macro hton_us passed 2 arguments,

  • 0

my code didn’t build successfully with this error message:

macro "hton_us" passed 2 arguments, but takes just 1

and it occurs on this line:

hton_us( &fi.size, 1 );

here is the refrence to hton_us

void hton_us( iu16 *us, iu8 num )
{
    iu16 local;

    while( num-- ) {
        local=*us;
        *us++=swap_us(local);
    }
}

I read in some similar question that told to use typedef but it didn’t help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:41:29+00:00Added an answer on June 13, 2026 at 1:41 am

    Using a little C preprocessor trick, you can skip the macro and just call the function:

    (hton_us)(&fi.size, 1);
    

    By surrounding hton_us in parentheses, it tells the compiler that this macro cannot be expanded, because it wasn’t called with any args, and thus the function gets called instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I didn't understand ..why I am facing this error.. Here is my code: package
This code didn't works as expected. I want to select all the posts that
I had this working in an old code that I didn’t end up using...
I debugged my java code. It didn't give any errors.But when i executed it
This code didn't show my picture. The picture really exists :) Does anybody know
How can I line break OHAttributedLabel ? My below code didn't work. OHAttributedLabel *lbl
After inheriting some Zend Framework code it didn't work, after lots of fiddling I've
The code below simply didn't work. document.getElementById('files').addEventListener('change', handleFileSelect, false); reported by firebug that this
Here is the code i wrote,when i execute the code,the terminal didn't output anything
I've inherited some code on a system that I didn't setup, and I'm running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.