Skip to content

Instantly share code, notes, and snippets.

View d630200x's full-sized avatar
💭
I may be slow to respond.

d630200x

💭
I may be slow to respond.
View GitHub Profile
#include "colaPrivate.h"
/*publice method define*/
cola_t* cola_newObj()
{
cola_t* self = (cola_t*)malloc(sizeof(cola_t));
self->m_data = (cola_data_t*)malloc(sizeof(cola_data_t));
self->m_vTable = (iDrink_vTable_t*)malloc(sizeof(iDrink_vTable_t));
self->m_vTable->init = &cola_init;