Code Monkey home page Code Monkey logo

Comments (5)

aozima avatar aozima commented on May 14, 2024
#define rt_kprintf(...)

VA_ARGS在不同的编译器上面并不一定兼容。

from rt-thread.

ufbycd avatar ufbycd commented on May 14, 2024

就目前所知 GCC 、IAR、ARM CC都支持 VA_ARGS
经过测试,这样做下来可以节省差不多10KB的程序空间。

from rt-thread.

BernardXiong avatar BernardXiong commented on May 14, 2024

这个挺好的,那么在头文件中更改下,更改成:
#ifndef RT_USING_CONSOLE
#define rt_kprintf(...)
#else
....
#endif

谢谢反馈。

from rt-thread.

aozima avatar aozima commented on May 14, 2024

commit时,日志写上 #XX 就可以关联issues了,如“fix spelling error by ziyi897, this commit fixes #74."

详见: http://gfreezy.github.io/blog/2011/11/24/githubzheng-he-pull-requesthe-issue/

from rt-thread.

aozima avatar aozima commented on May 14, 2024

问题已修复: 0bb5eb1

from rt-thread.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.