Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Function Overloading
« previous next »
  • Print
Pages: [1]

Author Topic: Function Overloading  (Read 1632 times)

Offline tdtooke

  • Member
  • *
  • Posts: 151
Function Overloading
« on: September 23, 2008, 10:47:20 PM »
How do you do this in Rockbox?  Basically I'm playing around with the multifont patch and the new changes introduced to font.c  gives the bootloader it's own font init code and there it uses a couple of functions that have an added parameter from the multifont patch.  You really don't need that parameter for the bootloader so now I can either just add it and get a warning for an unused parameter there or overload the affected functions which I cannot seem to figure out how to do.  I've done this a million times it's just for some reason it's not working now.  Any thoughts?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Function Overloading
« Reply #1 on: September 23, 2008, 11:01:12 PM »
Rockbox is in C, not C++.
Logged

Offline tdtooke

  • Member
  • *
  • Posts: 151
Re: Function Overloading
« Reply #2 on: September 24, 2008, 12:49:46 AM »
Ah, thanks.  I guess I could always use the power of ifdef to overload it.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Function Overloading
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.062 seconds with 15 queries.