Jump to content
Nytro

Some dark corners of C

Recommended Posts

Posted (edited)

Some dark corners of C

O prezentare care trebuie vazuta de toti programatorii C:

28s8o6q.png

https://docs.google.com/presentation/d/1h49gY3TSiayLMXYmRMaAEMl05FaJ-Z6jDOWOz3EsqqQ/preview?usp=sharing&sle=true#slide=id.gaf50702c_0153

Edited by Nytro
Posted

Eu chiar am avut ocazia sa folosesc chestii de genul acesta.

Aveam de scris niste teste pentru un cod. Acel cod este compilat cu un compilator proprietar pentru ca trebuie sa fie SIL4.

Acel compilator folosea functii proprii cum ar fi "hugealloc" si multe altele. Pentru a testa codul am folosit google test framework si Cxx test intr-un proiect visual studio cu compilatorul celor de la microsoft.

Pentru a rezolva dependentele de acele functii scriam intr-un fisier header chestii de genu:

#define hugealloc malloc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...